// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import Axios from './common/axios'
import store from './store'
// 过滤器函数
import {toTime} from "./common/utils"
Vue.filter('toTime',toTime)

Vue.use(ElementUI);

Vue.prototype.$http=Axios

Vue.config.productionTip = false;

router.beforeEach((to, from, next) => {
  document.title=to.meta.title;
  next();
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
